<template>
  <div>
    <el-row>
      <el-col :span="24">
        <h1>订单管理</h1>
      </el-col>
    </el-row>
    <el-row >
      <el-col :span="24">
        <el-table
            :data="orderDetailsList"
            style="width: 100%"
            height="250">
          <el-table-column
              prop="order.movieName"
              label="电影"
              width="150">
          </el-table-column>
          <el-table-column
              prop="order.cinemaName"
              label="影院"
              width="120">
          </el-table-column>
          <el-table-column
              prop="order.lobbyName"
              label="影厅"
              width="120">
          </el-table-column>
          <el-table-column
              prop="orderDetail.seatNumber"
              label="座位号"
              width="120">
          </el-table-column>
          <el-table-column
              prop="order.orderTime"
              label="订单时间"
              width="300">
          </el-table-column>
          <el-table-column
              prop="order.payment"
              label="支付方式"
              width="120">
          </el-table-column>
          <el-table-column
              prop="order.money"
              label="金额"
              width="120">
          </el-table-column>
          <el-table-column
              prop="order.state"
              label="订单状态"
              width="120">
          </el-table-column>
          <el-table-column
              prop="orderDetail.money"
              label="单价"
              width="120">
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "OrdersDetailsListView",
  data() {
    const orderDetailsListData = _ =>{
      const data = [];
      this.axios.get("manage/order/ordersDetailsList",{params: {
          orderNumber:this.$route.query.order.orderNumber
        }}).then(response=>{
        var directors=response.data.data;
        directors.forEach((director) => {
          data.push({
            orderDetail:director,
            order:this.$route.query.order
          });
        });
      })
      return data;
    }
    return {
      orderDetailsList: orderDetailsListData()
    }
  },
  created() {
  },
  methods: {

  }
}
</script>

<style scoped>

</style>